-
Notifications
You must be signed in to change notification settings - Fork 839
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expand table's default action type to allow reactnode names #3688
Expand table's default action type to allow reactnode names #3688
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Functionally works. I think you might have a small docs issue
@snide updated the action's props table |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM; tested locally with a more complex name
element (tooltip like what ML will do)
Preview documentation changes for this PR: https://eui.elastic.co/pr_3688/ |
Summary
Creates a work-around path for #3679 by expanding EuiBasicTable's default action's
name
to allow any React node.This does not fix the bug reported in #3679 where 3+ custom actions will trigger a React warning about nested button elements.
Checklist
- [ ] Check against all themes for compatibility in both light and dark modes- [ ] Checked in mobile- [ ] Checked in IE11 and Firefox- [ ] Props have proper autodocs- [ ] Added documentation- [ ] Checked Code Sandbox works for the any docs examples